#include "../header.h"
int main(int argc, char const *argv[])
{
    int fd1 = open("you.txt", O_RDWR);
    if(fd1 == -1)
    {
        perror("open error\n");
        return -1;
    }
    char buf[32];
    read(fd1, buf, sizeof(buf));
    printf("%s\n", buf);

    int fd2 = open("my.txt", O_RDWR);
    if(fd2 == -1)
    {
        perror("open error\n");
        return -1;
    }

    write(fd2, buf, strlen(buf));

    close(fd1);
    close(fd2);

    return 0;
}
